﻿/// Write a program to convert binary numbers to hexadecimal numbers (directly).

using System;

namespace c_sh_II_lek_7_numeral
{
    class zad6
    {
        static void Main()
        {
            Console.WriteLine(Convert.ToInt32(Console.ReadLine(), 2));
        }
    }
}
